package club.zhilin.guli.service.cms.mapper;

import club.zhilin.guli.service.cms.domain.Ad;
import club.zhilin.guli.service.cms.domain.vo.AdVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告推荐 Mapper 接口
 * </p>
 *
 * @author zhilin
 * @since 2022-02-22 16:00:09
 */
public interface AdMapper extends BaseMapper<Ad> {

    /**
     * 根据分页条件查询
     *
     * @param page    分页条件
     * @param wrapper 查询条件
     * @return list
     */
    List<AdVO> selectPageList(Page<AdVO> page, @Param(Constants.WRAPPER) QueryWrapper<AdVO> wrapper);
}
